package com.neuedu.demo;

import com.neuedu.utils.BigDecimalUtil;

import java.math.BigDecimal;

public class Demo {
    public static void main(String[] args) {
        double d_1 = 0.3;
        double d_2 = 0.6;
        System.out.println(d_1+d_2);

        /*BigDecimal b1 = new BigDecimal("0.3");
        BigDecimal b2 = new BigDecimal("0.6");
        BigDecimal result = b1.add(b2);*/
        System.out.println(BigDecimalUtil.sub(d_1,d_2));

    }
}
